package com.am.meeting.enums;

import lombok.Getter;

@Getter
public enum MeetingStatus {
    NOT_START(0, "未开始"),
    STARTING(1, "已开始"),
    OVER(2, "已结束"),

    ;
    private final int value;
    private final String desc;

    MeetingStatus(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public boolean equalsValue(Integer value){
        if (value == null) {
            return false;
        }
        return getValue() == value;
    }
}